import React from "react";
import { NavBar,Toast  } from "antd-mobile";
import './NavBarAgain.less'
const navBarAgain = function navBarAgain(props) {
    const {back,backArrow,title}=props
  const onback = () =>
    Toast.show({
      content: "点击了返回区域",
      duration: 1000,
    });
  return (
    <>
      <NavBar back={back} onBack={onback} backArrow={backArrow}>
       {title}
      </NavBar>
    </>
  );
};

export default navBarAgain;
